function [ output h ] = SPerceptron(input, weight)
    m = size(weight,1);
    
    %Concatenar en cada capa el threshold nodo con input -1
    aux = [-1];
    input = [input;aux];
    
    output = weight*input;
    h = output;

    for i=1:m
        output(i,1) = MyG(output(i,1));
    end
end



